<!-- 数据库操作记录弹窗 -->
<div class="xn_c_ban_jox xn_c_ban_jox_qxsz" id="xf_htxtsz_sjkczjl" style="display:none">
  <div class="xf_ht_jr_obu_width xf_ht_jr_aqsz_width">
    <div class="xf_ht_xtsz_aqwt xf_ht_xtsz_aqwt2" style="height: 200px; overflow-y:auto;">
      <table width="100%" border="0" cellspacing="0" cellpadding="0"
        class="xf_con_mem_r_b_table">
        <tr>
          <th width="60">选择</th>
          <th width="60">序号</th>
          <th width="80">时间</th>
          <th>数据库操作</th>
          <th>操作IP</th>
          <th>操作人</th>
          <th>安全云盾编号</th>
        </tr>
        #{list operations}
        <tr>
          <td><input type="radio" name="operation_id" value=${_?.id} /></td>
          <td>${_index}</td>
          <td>${_?.time?.format("yyyy-MM-dd HH:mm:ss")}</td>
          <td>
          #{if _?.type == 0}清空数据#{/if}
          #{elseif _?.type == 1}还原出厂初始数据#{/elseif}
          #{elseif _?.type == 2}还原运营数据#{/elseif}
          #{elseif _?.type == 3}备份数据#{/elseif}
          </td>
          <td>${_?.ip}</td>
          <td>${_?.supervisor_name}</td>
          <td>${_?.supervisor_ukey}</td>
        </tr>
        #{/list}
      </table>
    </div>
    <div class="jbox_tan_ondiv jbox_tan_width4">
      <input class="xf_ht_tcc_button_ok" type="button" onclick="submitOperation();"
        value="确  定"> 
      <input class="xf_ht_tcc_button_on"
        type="button" value="取  消">
    </div>
  </div>
</div>

<script type="text/javascript">
  $(function() {
    //关闭
    $(".xf_ht_jr_obu_r").click(function() {
      $("#xf_htxtsz_sjkczjl").hide();
    });

    //取消
    $(".xf_ht_tcc_button_on").click(function() {
      layer.close(p2);
      //$("#xf_htxtsz_sjkczjl").hide();
    });
  });

  //确定提交
  function submitOperation() {
    var id = $("input:radio[name='operation_id']:checked").val();
    
    if (typeof(id) == "undefined") {
      alert("请选择操作时间");
      
      return;
    }
    
    operationDidSelect(id);
   layer.close(p2);
  }
</script>